package com.joven.shelltest.utils.customretry;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @Author: wzj
 * @Date: 2024/3/26 14:52
 */
@Data
@AllArgsConstructor
public class RetryResult {

    private Boolean isRetry;
    private Object obj;

    public static RetryResult ofResult(Boolean isRetry, Object obj){
        return new RetryResult(isRetry, obj);
    }

    public static RetryResult ofResult(Boolean isRetry){
        return new RetryResult(isRetry, null);
    }
}
